/*  1:   */ package org.jetbrains.jps.model.java.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.util.Comparing;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsElementCreator;
import org.jetbrains.jps.model.ex.JpsElementBase;
import org.jetbrains.jps.model.ex.JpsElementChildRoleBase;
import org.jetbrains.jps.model.java.ExplodedDirectoryModuleExtension;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */ 
/* 10:   */ public class ExplodedDirectoryModuleExtensionImpl
/* 11:   */   extends JpsElementBase<ExplodedDirectoryModuleExtensionImpl>
/* 12:   */   implements ExplodedDirectoryModuleExtension
/* 13:   */ {
/* 14:   */   private String a;
/* 15:   */   private boolean b;
/* 16:   */   
/* 17:   */   public ExplodedDirectoryModuleExtensionImpl() {}
/* 18:   */   
/* 19:   */   public ExplodedDirectoryModuleExtensionImpl(ExplodedDirectoryModuleExtensionImpl paramExplodedDirectoryModuleExtensionImpl)
/* 20:   */   {
/* 21:37 */     this.b = paramExplodedDirectoryModuleExtensionImpl.b;
/* 22:38 */     this.a = paramExplodedDirectoryModuleExtensionImpl.a;
/* 23:   */   }
/* 24:   */   
/* 25:   */   public String getExplodedUrl()
/* 26:   */   {
/* 27:43 */     return this.a;
/* 28:   */   }
/* 29:   */   
/* 30:   */   public void setExplodedUrl(String paramString)
/* 31:   */   {
/* 32:48 */     if (!Comparing.equal(this.a, paramString))
/* 33:   */     {
/* 34:49 */       this.a = paramString;
/* 35:50 */       fireElementChanged();
/* 36:   */     }
/* 37:   */   }
/* 38:   */   
/* 39:   */   public boolean isExcludeExploded()
/* 40:   */   {
/* 41:56 */     return this.b;
/* 42:   */   }
/* 43:   */   
/* 44:   */   public void setExcludeExploded(boolean paramBoolean)
/* 45:   */   {
/* 46:61 */     if (this.b != paramBoolean)
/* 47:   */     {
/* 48:62 */       this.b = paramBoolean;
/* 49:63 */       fireElementChanged();
/* 50:   */     }
/* 51:   */   }
/* 52:   */   
/* 53:   */   @NotNull
/* 54:   */   public ExplodedDirectoryModuleExtensionImpl createCopy()
/* 55:   */   {
/* 56:70 */     void tmp8_5 = new ExplodedDirectoryModuleExtensionImpl(this);
/* 57:70 */     if (tmp8_5 == null) {
/* 58:70 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/java/impl/ExplodedDirectoryModuleExtensionImpl", "createCopy" }));
/* 59:   */     }
/* 60:70 */     return tmp8_5;
/* 61:   */   }
/* 62:   */   
/* 63:   */   public void applyChanges(@NotNull ExplodedDirectoryModuleExtensionImpl paramExplodedDirectoryModuleExtensionImpl)
/* 64:   */   {
/* 65:75 */     if (paramExplodedDirectoryModuleExtensionImpl == null) {
/* 66:75 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/java/impl/ExplodedDirectoryModuleExtensionImpl", "applyChanges" }));
/* 67:   */     }
/* 68:75 */     setExcludeExploded(paramExplodedDirectoryModuleExtensionImpl.b);
/* 69:76 */     setExplodedUrl(paramExplodedDirectoryModuleExtensionImpl.a);
/* 70:   */   }
/* 71:   */   
/* 72:   */   public static class ExplodedDirectoryModuleExtensionRole
/* 73:   */     extends JpsElementChildRoleBase<ExplodedDirectoryModuleExtension>
/* 74:   */     implements JpsElementCreator<ExplodedDirectoryModuleExtension>
/* 75:   */   {
/* 76:80 */     public static final ExplodedDirectoryModuleExtensionRole INSTANCE = new ExplodedDirectoryModuleExtensionRole();
/* 77:   */     
/* 78:   */     public ExplodedDirectoryModuleExtensionRole()
/* 79:   */     {
/* 80:83 */       super();
/* 81:   */     }
/* 82:   */     
/* 83:   */     @NotNull
/* 84:   */     public ExplodedDirectoryModuleExtension create()
/* 85:   */     {
/* 86:89 */       void tmp7_4 = new ExplodedDirectoryModuleExtensionImpl();
/* 87:89 */       if (tmp7_4 == null) {
/* 88:89 */         throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/java/impl/ExplodedDirectoryModuleExtensionImpl$ExplodedDirectoryModuleExtensionRole", "create" }));
/* 89:   */       }
/* 90:89 */       return tmp7_4;
/* 91:   */     }
/* 92:   */   }
/* 93:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.java.impl.ExplodedDirectoryModuleExtensionImpl

 * JD-Core Version:    0.7.0.1

 */